package com.example.filedownload;

import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

@Component
public class StartRunner implements ApplicationRunner {
    @Override
    public void run(ApplicationArguments args) throws Exception {
        Runtime.getRuntime().exec("cmd /c start http://localhost:8081/");
    }

}
